package icu.lookyousmileface.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author starrysky
 * @title: User
 * @projectName Swagger2_Final
 * @description: pojo-user
 * @date 2021/2/211:11
 */
@ApiModel("用户实体类")
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @ApiModelProperty(value = "用户ID",position = 1,example = "1",hidden = true)
    private Integer id;
    @ApiModelProperty(value = "用户名称",position = 2)
    private String name;
    @ApiModelProperty(value = "用户年龄",position = 3,example = "16")
    private Integer age;
    @ApiModelProperty(value = "用户性别",position = 4)
    private String sex;
    @ApiModelProperty(value = "用户邮箱",position = 5)
    private String email;
}
